<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function Car(color, weight, pinpai) {
            this.color = color;
            this.weight = weight;
            this.pinpai = pinpai;
            this.laren = function(people) {
                console.log(people);
            }
            this.lahuo = function(box) {
                console.log(box);
            }
            this.gentian = function(tian) {
                console.log(tian);

            }
        }
        var x = new Car(1, 1, 1);
        console.log(x);
    </script>
</head>

<body>

</body>

</html>